<?php

namespace App\Common\Traits;

use App\Models\AgentRevenue;
use Hyperf\Database\Model\Relations\MorphMany;

trait HasAgentRevenues
{
    /**
     * @return MorphMany
     */
    public function agentRevenues(): MorphMany
    {
        return $this->morphMany(AgentRevenue::class, 'source');
    }
}
